package com.example.inheritjoined;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@PrimaryKeyJoinColumn(name = "book_id", referencedColumnName = "id")
public class RedBook extends Book{
    private String redMark;
}
